package com.broadtext.message.service;

import com.broadtext.common.bean.EntityPageBean;
import com.broadtext.common.exp.DaoException;
import com.broadtext.common.exp.ServiceException;
import com.broadtext.common.service.IEntityService;
import com.broadtext.message.model.MsgNoticeConfig;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;

import java.util.Map;

public interface IMsgNoticeConfigService extends IEntityService<MsgNoticeConfig>{

    EntityPageBean<MsgNoticeConfig> getMsgNoticeConfigPageBean(Map<String, Object> params, PageBounds pageBounds) throws ServiceException, DaoException;

    void saveMsgNoticeConfig(MsgNoticeConfig msgNoticeConfig,String operator) throws ServiceException, DaoException;

    /**
     * 根据用户id查询通知配置
     * @param id 用户id
     * @return 实体类
     */
    MsgNoticeConfig getMsgNoticeConfig(String id) throws DaoException;

}
